#include "Dice.h"
#include "FiniteStateMachine.h"
#include "InitGame.h"

int main(){
	srand(time(nullptr));
	Game game(16);
	FiniteStateMachine<Game> fsm(&game);
	fsm.Start(new InitGame());
	while(!game.finish){
		fsm.Execute();
	}
	std::cout << std::endl << "Clicca un tasto qualsiasi per terminare il gioco!" << std::endl;
	std::cin.get();
	std::cin.get();
	return 0;
}